/*
 * @Author: your name
 * @Date: 2022-04-06 19:10:17
 * @LastEditTime: 2022-04-06 19:48:32
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \erp-management-system\src\views\finance\customModal\modifyInfo.jsx
 */
import React, { useState } from 'react';
import { Modal, Button, Input } from 'antd';
import './customModal.css'
const Modifyinfo = (props) => {
    // console.log(props);
    const { singleInfo, modifyModalVisible } = props
    const [isModalVisible, setIsModalVisible] = useState(true);

    const showModal = () => {
        setIsModalVisible(true);
    };

    const handleOk = () => {
        setIsModalVisible(false);
        modifyModalVisible(false)
    };

    const handleCancel = () => {
        setIsModalVisible(false);
        modifyModalVisible(false)
    };
    return (
        <>
            <Modal
                mask={false}
                title="修改字段限制名称"
                visible={isModalVisible}
                onOk={handleOk}
                onCancel={handleCancel}
                className='modify-modal'
                width={'250px'}
            >
                <Input value={singleInfo} />
            </Modal>
        </>
    );
}

export default Modifyinfo;
